<?php

namespace App\Admin\Actions\Show;

use App\Models\Customer;
use Dcat\Admin\Http\JsonResponse;
use Dcat\Admin\Show\AbstractTool;

class CustomerOoaInto extends AbstractTool
{
    protected $title = '丢入公海';

    public function handle()
    {
        //退回公海
        Customer::ooaInto($this->getKey());
        return JsonResponse::make()->success('操作成功')->refresh();
    }

    public function confirm()
    {
        return ['您确定要退回公海吗？', ''];
    }

}
